/*
               File: C48
        Description: Conversion for table MMVEH10
             Author: GeneXus Java Generator version 8_0_9-040
       Generated on: 28 de Setiembre de 2010 13:0:29.32
       Program type: Callable routine
          Main DBMS: sqlserver
*/
import java.sql.*;
import com.genexus.db.*;
import com.genexus.*;
import com.genexus.distributed.*;

public final class c48 extends GXProcedure
{
   public c48( int remoteHandle )
   {
      super( remoteHandle , new ModelContext( c48.class ), "" );
   }

   public c48( int remoteHandle ,
               ModelContext context )
   {
      super( remoteHandle , context, "" );
   }

   public void execute( )
   {
      execute_int();
   }

   private void execute_int( )
   {
      initialize();
      /* GeneXus formulas */
      /* Output device settings */
      /* Using cursor C482 */
      pr_default.execute(0);
      while ( (pr_default.getStatus(0) != 101) )
      {
         A597MVehEs = C482_A597MVehEs[0] ;
         A595MVehAn = C482_A595MVehAn[0] ;
         A594MVehPB = C482_A594MVehPB[0] ;
         A593MVehCo = C482_A593MVehCo[0] ;
         A591MVehUU = C482_A591MVehUU[0] ;
         A590MVehHU = C482_A590MVehHU[0] ;
         A589MVehFU = C482_A589MVehFU[0] ;
         A588MVehUC = C482_A588MVehUC[0] ;
         A587MVehHC = C482_A587MVehHC[0] ;
         A586MVehFC = C482_A586MVehFC[0] ;
         A553MVehNP = C482_A553MVehNP[0] ;
         A552MVehNA = C482_A552MVehNA[0] ;
         A551MVehNR = C482_A551MVehNR[0] ;
         A550MVehNe = C482_A550MVehNe[0] ;
         A549MVehAl = C482_A549MVehAl[0] ;
         A548MVehLo = C482_A548MVehLo[0] ;
         A547MVehCU = C482_A547MVehCU[0] ;
         A546MVehPS = C482_A546MVehPS[0] ;
         A545MVehNC = C482_A545MVehNC[0] ;
         A544MVehNs = C482_A544MVehNs[0] ;
         A543MVehNM = C482_A543MVehNM[0] ;
         A542MVehCo = C482_A542MVehCo[0] ;
         A541MVehCa = C482_A541MVehCa[0] ;
         A540MVehCa = C482_A540MVehCa[0] ;
         A539CmbCod = C482_A539CmbCod[0] ;
         A538MVehNr = C482_A538MVehNr[0] ;
         A537MVehNr = C482_A537MVehNr[0] ;
         A536MVehNr = C482_A536MVehNr[0] ;
         A535MVehNr = C482_A535MVehNr[0] ;
         A534MVehAn = C482_A534MVehAn[0] ;
         A533MVehAl = C482_A533MVehAl[0] ;
         A532MVehLo = C482_A532MVehLo[0] ;
         A531MVehCa = C482_A531MVehCa[0] ;
         A530MVehPe = C482_A530MVehPe[0] ;
         A529MVehPe = C482_A529MVehPe[0] ;
         A528MVehNr = C482_A528MVehNr[0] ;
         A527MVehNr = C482_A527MVehNr[0] ;
         A526MVehNr = C482_A526MVehNr[0] ;
         A525MVehCo = C482_A525MVehCo[0] ;
         A523CmbCod = C482_A523CmbCod[0] ;
         A522MVehAn = C482_A522MVehAn[0] ;
         A189MarCod = C482_A189MarCod[0] ;
         A385ModCod = C482_A385ModCod[0] ;
         A376TipAut = C482_A376TipAut[0] ;
         A521MVehNo = C482_A521MVehNo[0] ;
         A520MVehNr = C482_A520MVehNr[0] ;
         A519MVehCo = C482_A519MVehCo[0] ;
         /*
            INSERT RECORD ON TABLE GXA0048

         */
         AV2MVehCod = A519MVehCo ;
         if ( C482_n520MVehNr[0] )
         {
            AV3MVehNro = "" ;
         }
         else
         {
            AV3MVehNro = A520MVehNr ;
         }
         if ( C482_n521MVehNo[0] )
         {
            AV4MVehNom = "" ;
         }
         else
         {
            AV4MVehNom = A521MVehNo ;
         }
         if ( C482_n376TipAut[0] )
         {
            AV5TipAutC = 0 ;
         }
         else
         {
            AV5TipAutC = A376TipAut ;
         }
         if ( C482_n385ModCod[0] )
         {
            AV6ModCod = "" ;
         }
         else
         {
            AV6ModCod = GXutil.str( A385ModCod, 4, 0) ;
         }
         if ( C482_n189MarCod[0] )
         {
            AV7MarCod = "" ;
         }
         else
         {
            AV7MarCod = A189MarCod ;
         }
         if ( C482_n522MVehAn[0] )
         {
            AV8MVehAno = 0 ;
         }
         else
         {
            AV8MVehAno = A522MVehAn ;
         }
         if ( C482_n523CmbCod[0] )
         {
            AV9CmbCod = 0 ;
         }
         else
         {
            AV9CmbCod = A523CmbCod ;
         }
         if ( C482_n525MVehCo[0] )
         {
            AV10MVehCo = "" ;
         }
         else
         {
            AV10MVehCo = A525MVehCo ;
         }
         if ( C482_n526MVehNr[0] )
         {
            AV11MVehNr = "" ;
         }
         else
         {
            AV11MVehNr = A526MVehNr ;
         }
         if ( C482_n527MVehNr[0] )
         {
            AV12MVehNr = "" ;
         }
         else
         {
            AV12MVehNr = A527MVehNr ;
         }
         if ( C482_n528MVehNr[0] )
         {
            AV13MVehNr = 0 ;
         }
         else
         {
            AV13MVehNr = A528MVehNr ;
         }
         if ( C482_n529MVehPe[0] )
         {
            AV14MVehPe = 0 ;
         }
         else
         {
            AV14MVehPe = A529MVehPe ;
         }
         if ( C482_n530MVehPe[0] )
         {
            AV15MVehPe = 0 ;
         }
         else
         {
            AV15MVehPe = A530MVehPe ;
         }
         if ( C482_n531MVehCa[0] )
         {
            AV16MVehCa = 0 ;
         }
         else
         {
            AV16MVehCa = A531MVehCa ;
         }
         if ( C482_n532MVehLo[0] )
         {
            AV17MVehLo = 0 ;
         }
         else
         {
            AV17MVehLo = A532MVehLo ;
         }
         if ( C482_n533MVehAl[0] )
         {
            AV18MVehAl = 0 ;
         }
         else
         {
            AV18MVehAl = A533MVehAl ;
         }
         if ( C482_n534MVehAn[0] )
         {
            AV19MVehAn = 0 ;
         }
         else
         {
            AV19MVehAn = A534MVehAn ;
         }
         if ( C482_n535MVehNr[0] )
         {
            AV20MVehNr = 0 ;
         }
         else
         {
            AV20MVehNr = A535MVehNr ;
         }
         if ( C482_n536MVehNr[0] )
         {
            AV21MVehNr = 0 ;
         }
         else
         {
            AV21MVehNr = A536MVehNr ;
         }
         if ( C482_n537MVehNr[0] )
         {
            AV22MVehNr = 0 ;
         }
         else
         {
            AV22MVehNr = A537MVehNr ;
         }
         if ( C482_n538MVehNr[0] )
         {
            AV23MVehNr = 0 ;
         }
         else
         {
            AV23MVehNr = A538MVehNr ;
         }
         if ( C482_n539CmbCod[0] )
         {
            AV24CmbCod = 0 ;
         }
         else
         {
            AV24CmbCod = A539CmbCod ;
         }
         if ( C482_n540MVehCa[0] )
         {
            AV25MVehCa = "" ;
         }
         else
         {
            AV25MVehCa = A540MVehCa ;
         }
         if ( C482_n541MVehCa[0] )
         {
            AV26MVehCa = "" ;
         }
         else
         {
            AV26MVehCa = A541MVehCa ;
         }
         if ( C482_n542MVehCo[0] )
         {
            AV27MVehCo = "" ;
         }
         else
         {
            AV27MVehCo = A542MVehCo ;
         }
         if ( C482_n543MVehNM[0] )
         {
            AV28MVehNM = "" ;
         }
         else
         {
            AV28MVehNM = A543MVehNM ;
         }
         if ( C482_n544MVehNs[0] )
         {
            AV29MVehNs = "" ;
         }
         else
         {
            AV29MVehNs = A544MVehNs ;
         }
         if ( C482_n545MVehNC[0] )
         {
            AV30MVehNC = 0 ;
         }
         else
         {
            AV30MVehNC = A545MVehNC ;
         }
         if ( C482_n546MVehPS[0] )
         {
            AV31MVehPS = 0 ;
         }
         else
         {
            AV31MVehPS = A546MVehPS ;
         }
         if ( C482_n547MVehCU[0] )
         {
            AV32MVehCU = 0 ;
         }
         else
         {
            AV32MVehCU = A547MVehCU ;
         }
         if ( C482_n548MVehLo[0] )
         {
            AV33MVehLo = 0 ;
         }
         else
         {
            AV33MVehLo = A548MVehLo ;
         }
         if ( C482_n549MVehAl[0] )
         {
            AV34MVehAl = 0 ;
         }
         else
         {
            AV34MVehAl = A549MVehAl ;
         }
         if ( C482_n550MVehNe[0] )
         {
            AV35MVehNe = 0 ;
         }
         else
         {
            AV35MVehNe = A550MVehNe ;
         }
         if ( C482_n551MVehNR[0] )
         {
            AV36MVehNR = 0 ;
         }
         else
         {
            AV36MVehNR = A551MVehNR ;
         }
         if ( C482_n552MVehNA[0] )
         {
            AV37MVehNA = 0 ;
         }
         else
         {
            AV37MVehNA = A552MVehNA ;
         }
         if ( C482_n553MVehNP[0] )
         {
            AV38MVehNP = 0 ;
         }
         else
         {
            AV38MVehNP = A553MVehNP ;
         }
         if ( C482_n586MVehFC[0] )
         {
            AV39MVehFC = GXutil.nullDate() ;
         }
         else
         {
            AV39MVehFC = A586MVehFC ;
         }
         if ( C482_n587MVehHC[0] )
         {
            AV40MVehHC = "" ;
         }
         else
         {
            AV40MVehHC = A587MVehHC ;
         }
         if ( C482_n588MVehUC[0] )
         {
            AV41MVehUC = "" ;
         }
         else
         {
            AV41MVehUC = A588MVehUC ;
         }
         if ( C482_n589MVehFU[0] )
         {
            AV42MVehFU = GXutil.nullDate() ;
         }
         else
         {
            AV42MVehFU = A589MVehFU ;
         }
         if ( C482_n590MVehHU[0] )
         {
            AV43MVehHU = "" ;
         }
         else
         {
            AV43MVehHU = A590MVehHU ;
         }
         if ( C482_n591MVehUU[0] )
         {
            AV44MVehUU = "" ;
         }
         else
         {
            AV44MVehUU = A591MVehUU ;
         }
         if ( C482_n593MVehCo[0] )
         {
            AV45MVehCo = 0 ;
         }
         else
         {
            AV45MVehCo = A593MVehCo ;
         }
         if ( C482_n594MVehPB[0] )
         {
            AV46MVehPB = 0 ;
         }
         else
         {
            AV46MVehPB = A594MVehPB ;
         }
         if ( C482_n595MVehAn[0] )
         {
            AV47MVehAn = 0 ;
         }
         else
         {
            AV47MVehAn = A595MVehAn ;
         }
         if ( C482_n597MVehEs[0] )
         {
            AV48MVehEs = "" ;
         }
         else
         {
            AV48MVehEs = A597MVehEs ;
         }
         /* Using cursor C483 */
         pr_default.execute(1, new Object[] {new Short(AV2MVehCod), AV3MVehNro, AV4MVehNom, new Byte(AV5TipAutC), AV6ModCod, AV7MarCod, new Short(AV8MVehAno), new Integer(AV9CmbCod), AV10MVehCo, AV11MVehNr, AV12MVehNr, new Integer(AV13MVehNr), new Integer(AV14MVehPe), new Integer(AV15MVehPe), new Integer(AV16MVehCa), new Integer(AV17MVehLo), new Integer(AV18MVehAl), new Integer(AV19MVehAn), new Integer(AV20MVehNr), new Integer(AV21MVehNr), new Integer(AV22MVehNr), new Integer(AV23MVehNr), new Integer(AV24CmbCod), AV25MVehCa, AV26MVehCa, AV27MVehCo, AV28MVehNM, AV29MVehNs, new Integer(AV30MVehNC), new Integer(AV31MVehPS), new Integer(AV32MVehCU), new Integer(AV33MVehLo), new Integer(AV34MVehAl), new Integer(AV35MVehNe), new Integer(AV36MVehNR), new Integer(AV37MVehNA), new Integer(AV38MVehNP), AV39MVehFC, AV40MVehHC, AV41MVehUC, AV42MVehFU, AV43MVehHU, AV44MVehUU, new Long(AV45MVehCo), new Integer(AV46MVehPB), new Integer(AV47MVehAn), AV48MVehEs});
         if ( (pr_default.getStatus(1) == 1) )
         {
            Gx_err = (short)(1) ;
            Gx_emsg = localUtil.getMessages().getMessage("noupdate") ;
         }
         else
         {
            Gx_err = 0 ;
            Gx_emsg = "" ;
         }
         /* End Insert */
         pr_default.readNext(0);
      }
      pr_default.close(0);
      cleanup();
   }

   protected void cleanup( )
   {
      exitApplication();
   }

   /* Aggregate/select formulas */
   public void initialize( )
   {
      C482_A597MVehEs = new String[] {""} ;
      C482_A595MVehAn = new int[1] ;
      C482_A594MVehPB = new int[1] ;
      C482_A593MVehCo = new long[1] ;
      C482_A591MVehUU = new String[] {""} ;
      C482_A590MVehHU = new String[] {""} ;
      C482_A589MVehFU = new java.util.Date[] {GXutil.nullDate()} ;
      C482_A588MVehUC = new String[] {""} ;
      C482_A587MVehHC = new String[] {""} ;
      C482_A586MVehFC = new java.util.Date[] {GXutil.nullDate()} ;
      C482_A553MVehNP = new int[1] ;
      C482_A552MVehNA = new int[1] ;
      C482_A551MVehNR = new int[1] ;
      C482_A550MVehNe = new int[1] ;
      C482_A549MVehAl = new int[1] ;
      C482_A548MVehLo = new int[1] ;
      C482_A547MVehCU = new int[1] ;
      C482_A546MVehPS = new int[1] ;
      C482_A545MVehNC = new int[1] ;
      C482_A544MVehNs = new String[] {""} ;
      C482_A543MVehNM = new String[] {""} ;
      C482_A542MVehCo = new String[] {""} ;
      C482_A541MVehCa = new String[] {""} ;
      C482_A540MVehCa = new String[] {""} ;
      C482_A539CmbCod = new int[1] ;
      C482_A538MVehNr = new int[1] ;
      C482_A537MVehNr = new int[1] ;
      C482_A536MVehNr = new int[1] ;
      C482_A535MVehNr = new int[1] ;
      C482_A534MVehAn = new int[1] ;
      C482_A533MVehAl = new int[1] ;
      C482_A532MVehLo = new int[1] ;
      C482_A531MVehCa = new int[1] ;
      C482_A530MVehPe = new int[1] ;
      C482_A529MVehPe = new int[1] ;
      C482_A528MVehNr = new int[1] ;
      C482_A527MVehNr = new String[] {""} ;
      C482_A526MVehNr = new String[] {""} ;
      C482_A525MVehCo = new String[] {""} ;
      C482_A523CmbCod = new int[1] ;
      C482_A522MVehAn = new short[1] ;
      C482_A189MarCod = new String[] {""} ;
      C482_A385ModCod = new short[1] ;
      C482_A376TipAut = new byte[1] ;
      C482_A521MVehNo = new String[] {""} ;
      C482_A520MVehNr = new String[] {""} ;
      C482_A519MVehCo = new short[1] ;
      A597MVehEs = "" ;
      A595MVehAn = 0 ;
      A594MVehPB = 0 ;
      A593MVehCo = 0 ;
      A591MVehUU = "" ;
      A590MVehHU = "" ;
      A589MVehFU = GXutil.nullDate() ;
      A588MVehUC = "" ;
      A587MVehHC = "" ;
      A586MVehFC = GXutil.nullDate() ;
      A553MVehNP = 0 ;
      A552MVehNA = 0 ;
      A551MVehNR = 0 ;
      A550MVehNe = 0 ;
      A549MVehAl = 0 ;
      A548MVehLo = 0 ;
      A547MVehCU = 0 ;
      A546MVehPS = 0 ;
      A545MVehNC = 0 ;
      A544MVehNs = "" ;
      A543MVehNM = "" ;
      A542MVehCo = "" ;
      A541MVehCa = "" ;
      A540MVehCa = "" ;
      A539CmbCod = 0 ;
      A538MVehNr = 0 ;
      A537MVehNr = 0 ;
      A536MVehNr = 0 ;
      A535MVehNr = 0 ;
      A534MVehAn = 0 ;
      A533MVehAl = 0 ;
      A532MVehLo = 0 ;
      A531MVehCa = 0 ;
      A530MVehPe = 0 ;
      A529MVehPe = 0 ;
      A528MVehNr = 0 ;
      A527MVehNr = "" ;
      A526MVehNr = "" ;
      A525MVehCo = "" ;
      A523CmbCod = 0 ;
      A522MVehAn = 0 ;
      A189MarCod = "" ;
      A385ModCod = 0 ;
      A376TipAut = 0 ;
      A521MVehNo = "" ;
      A520MVehNr = "" ;
      A519MVehCo = 0 ;
      GIGXA0048 = 0 ;
      AV2MVehCod = 0 ;
      C482_n520MVehNr = new boolean[] {false} ;
      AV3MVehNro = "" ;
      C482_n521MVehNo = new boolean[] {false} ;
      AV4MVehNom = "" ;
      C482_n376TipAut = new boolean[] {false} ;
      AV5TipAutC = 0 ;
      C482_n385ModCod = new boolean[] {false} ;
      AV6ModCod = "" ;
      C482_n189MarCod = new boolean[] {false} ;
      AV7MarCod = "" ;
      C482_n522MVehAn = new boolean[] {false} ;
      AV8MVehAno = 0 ;
      C482_n523CmbCod = new boolean[] {false} ;
      AV9CmbCod = 0 ;
      C482_n525MVehCo = new boolean[] {false} ;
      AV10MVehCo = "" ;
      C482_n526MVehNr = new boolean[] {false} ;
      AV11MVehNr = "" ;
      C482_n527MVehNr = new boolean[] {false} ;
      AV12MVehNr = "" ;
      C482_n528MVehNr = new boolean[] {false} ;
      AV13MVehNr = 0 ;
      C482_n529MVehPe = new boolean[] {false} ;
      AV14MVehPe = 0 ;
      C482_n530MVehPe = new boolean[] {false} ;
      AV15MVehPe = 0 ;
      C482_n531MVehCa = new boolean[] {false} ;
      AV16MVehCa = 0 ;
      C482_n532MVehLo = new boolean[] {false} ;
      AV17MVehLo = 0 ;
      C482_n533MVehAl = new boolean[] {false} ;
      AV18MVehAl = 0 ;
      C482_n534MVehAn = new boolean[] {false} ;
      AV19MVehAn = 0 ;
      C482_n535MVehNr = new boolean[] {false} ;
      AV20MVehNr = 0 ;
      C482_n536MVehNr = new boolean[] {false} ;
      AV21MVehNr = 0 ;
      C482_n537MVehNr = new boolean[] {false} ;
      AV22MVehNr = 0 ;
      C482_n538MVehNr = new boolean[] {false} ;
      AV23MVehNr = 0 ;
      C482_n539CmbCod = new boolean[] {false} ;
      AV24CmbCod = 0 ;
      C482_n540MVehCa = new boolean[] {false} ;
      AV25MVehCa = "" ;
      C482_n541MVehCa = new boolean[] {false} ;
      AV26MVehCa = "" ;
      C482_n542MVehCo = new boolean[] {false} ;
      AV27MVehCo = "" ;
      C482_n543MVehNM = new boolean[] {false} ;
      AV28MVehNM = "" ;
      C482_n544MVehNs = new boolean[] {false} ;
      AV29MVehNs = "" ;
      C482_n545MVehNC = new boolean[] {false} ;
      AV30MVehNC = 0 ;
      C482_n546MVehPS = new boolean[] {false} ;
      AV31MVehPS = 0 ;
      C482_n547MVehCU = new boolean[] {false} ;
      AV32MVehCU = 0 ;
      C482_n548MVehLo = new boolean[] {false} ;
      AV33MVehLo = 0 ;
      C482_n549MVehAl = new boolean[] {false} ;
      AV34MVehAl = 0 ;
      C482_n550MVehNe = new boolean[] {false} ;
      AV35MVehNe = 0 ;
      C482_n551MVehNR = new boolean[] {false} ;
      AV36MVehNR = 0 ;
      C482_n552MVehNA = new boolean[] {false} ;
      AV37MVehNA = 0 ;
      C482_n553MVehNP = new boolean[] {false} ;
      AV38MVehNP = 0 ;
      C482_n586MVehFC = new boolean[] {false} ;
      AV39MVehFC = GXutil.nullDate() ;
      C482_n587MVehHC = new boolean[] {false} ;
      AV40MVehHC = "" ;
      C482_n588MVehUC = new boolean[] {false} ;
      AV41MVehUC = "" ;
      C482_n589MVehFU = new boolean[] {false} ;
      AV42MVehFU = GXutil.nullDate() ;
      C482_n590MVehHU = new boolean[] {false} ;
      AV43MVehHU = "" ;
      C482_n591MVehUU = new boolean[] {false} ;
      AV44MVehUU = "" ;
      C482_n593MVehCo = new boolean[] {false} ;
      AV45MVehCo = 0 ;
      C482_n594MVehPB = new boolean[] {false} ;
      AV46MVehPB = 0 ;
      C482_n595MVehAn = new boolean[] {false} ;
      AV47MVehAn = 0 ;
      C482_n597MVehEs = new boolean[] {false} ;
      AV48MVehEs = "" ;
      Gx_err = 0 ;
      Gx_emsg = "" ;
      pr_default = new DataStoreProvider(context, remoteHandle, new c48__default(),
         new Object[] {
             new Object[] {
            C482_A597MVehEs, C482_n597MVehEs, C482_A595MVehAn, C482_n595MVehAn, C482_A594MVehPB, C482_n594MVehPB, C482_A593MVehCo, C482_n593MVehCo, C482_A591MVehUU, C482_n591MVehUU,
            C482_A590MVehHU, C482_n590MVehHU, C482_A589MVehFU, C482_n589MVehFU, C482_A588MVehUC, C482_n588MVehUC, C482_A587MVehHC, C482_n587MVehHC, C482_A586MVehFC, C482_n586MVehFC,
            C482_A553MVehNP, C482_n553MVehNP, C482_A552MVehNA, C482_n552MVehNA, C482_A551MVehNR, C482_n551MVehNR, C482_A550MVehNe, C482_n550MVehNe, C482_A549MVehAl, C482_n549MVehAl,
            C482_A548MVehLo, C482_n548MVehLo, C482_A547MVehCU, C482_n547MVehCU, C482_A546MVehPS, C482_n546MVehPS, C482_A545MVehNC, C482_n545MVehNC, C482_A544MVehNs, C482_n544MVehNs,
            C482_A543MVehNM, C482_n543MVehNM, C482_A542MVehCo, C482_n542MVehCo, C482_A541MVehCa, C482_n541MVehCa, C482_A540MVehCa, C482_n540MVehCa, C482_A539CmbCod, C482_n539CmbCod,
            C482_A538MVehNr, C482_n538MVehNr, C482_A537MVehNr, C482_n537MVehNr, C482_A536MVehNr, C482_n536MVehNr, C482_A535MVehNr, C482_n535MVehNr, C482_A534MVehAn, C482_n534MVehAn,
            C482_A533MVehAl, C482_n533MVehAl, C482_A532MVehLo, C482_n532MVehLo, C482_A531MVehCa, C482_n531MVehCa, C482_A530MVehPe, C482_n530MVehPe, C482_A529MVehPe, C482_n529MVehPe,
            C482_A528MVehNr, C482_n528MVehNr, C482_A527MVehNr, C482_n527MVehNr, C482_A526MVehNr, C482_n526MVehNr, C482_A525MVehCo, C482_n525MVehCo, C482_A523CmbCod, C482_n523CmbCod,
            C482_A522MVehAn, C482_n522MVehAn, C482_A189MarCod, C482_n189MarCod, C482_A385ModCod, C482_n385ModCod, C482_A376TipAut, C482_n376TipAut, C482_A521MVehNo, C482_n521MVehNo,
            C482_A520MVehNr, C482_n520MVehNr, C482_A519MVehCo
            }
            , new Object[] {
            }
         }
      );
      /* GeneXus formulas. */
      Gx_err = 0 ;
   }

   private byte A376TipAut ;
   private byte AV5TipAutC ;
   private short A522MVehAn ;
   private short A385ModCod ;
   private short A519MVehCo ;
   private short AV2MVehCod ;
   private short AV8MVehAno ;
   private short Gx_err ;
   private int A595MVehAn ;
   private int A594MVehPB ;
   private int A553MVehNP ;
   private int A552MVehNA ;
   private int A551MVehNR ;
   private int A550MVehNe ;
   private int A549MVehAl ;
   private int A548MVehLo ;
   private int A547MVehCU ;
   private int A546MVehPS ;
   private int A545MVehNC ;
   private int A539CmbCod ;
   private int A538MVehNr ;
   private int A537MVehNr ;
   private int A536MVehNr ;
   private int A535MVehNr ;
   private int A534MVehAn ;
   private int A533MVehAl ;
   private int A532MVehLo ;
   private int A531MVehCa ;
   private int A530MVehPe ;
   private int A529MVehPe ;
   private int A528MVehNr ;
   private int A523CmbCod ;
   private int GIGXA0048 ;
   private int AV9CmbCod ;
   private int AV13MVehNr ;
   private int AV14MVehPe ;
   private int AV15MVehPe ;
   private int AV16MVehCa ;
   private int AV17MVehLo ;
   private int AV18MVehAl ;
   private int AV19MVehAn ;
   private int AV20MVehNr ;
   private int AV21MVehNr ;
   private int AV22MVehNr ;
   private int AV23MVehNr ;
   private int AV24CmbCod ;
   private int AV30MVehNC ;
   private int AV31MVehPS ;
   private int AV32MVehCU ;
   private int AV33MVehLo ;
   private int AV34MVehAl ;
   private int AV35MVehNe ;
   private int AV36MVehNR ;
   private int AV37MVehNA ;
   private int AV38MVehNP ;
   private int AV46MVehPB ;
   private int AV47MVehAn ;
   private long A593MVehCo ;
   private long AV45MVehCo ;
   private String A597MVehEs ;
   private String A591MVehUU ;
   private String A590MVehHU ;
   private String A588MVehUC ;
   private String A587MVehHC ;
   private String A544MVehNs ;
   private String A543MVehNM ;
   private String A542MVehCo ;
   private String A541MVehCa ;
   private String A540MVehCa ;
   private String A527MVehNr ;
   private String A526MVehNr ;
   private String A525MVehCo ;
   private String A189MarCod ;
   private String A521MVehNo ;
   private String A520MVehNr ;
   private String AV3MVehNro ;
   private String AV4MVehNom ;
   private String AV6ModCod ;
   private String AV7MarCod ;
   private String AV10MVehCo ;
   private String AV11MVehNr ;
   private String AV12MVehNr ;
   private String AV25MVehCa ;
   private String AV26MVehCa ;
   private String AV27MVehCo ;
   private String AV28MVehNM ;
   private String AV29MVehNs ;
   private String AV40MVehHC ;
   private String AV41MVehUC ;
   private String AV43MVehHU ;
   private String AV44MVehUU ;
   private String AV48MVehEs ;
   private String Gx_emsg ;
   private java.util.Date A589MVehFU ;
   private java.util.Date A586MVehFC ;
   private java.util.Date AV39MVehFC ;
   private java.util.Date AV42MVehFU ;
   private IDataStoreProvider pr_default ;
   private String[] C482_A597MVehEs ;
   private int[] C482_A595MVehAn ;
   private int[] C482_A594MVehPB ;
   private long[] C482_A593MVehCo ;
   private String[] C482_A591MVehUU ;
   private String[] C482_A590MVehHU ;
   private java.util.Date[] C482_A589MVehFU ;
   private String[] C482_A588MVehUC ;
   private String[] C482_A587MVehHC ;
   private java.util.Date[] C482_A586MVehFC ;
   private int[] C482_A553MVehNP ;
   private int[] C482_A552MVehNA ;
   private int[] C482_A551MVehNR ;
   private int[] C482_A550MVehNe ;
   private int[] C482_A549MVehAl ;
   private int[] C482_A548MVehLo ;
   private int[] C482_A547MVehCU ;
   private int[] C482_A546MVehPS ;
   private int[] C482_A545MVehNC ;
   private String[] C482_A544MVehNs ;
   private String[] C482_A543MVehNM ;
   private String[] C482_A542MVehCo ;
   private String[] C482_A541MVehCa ;
   private String[] C482_A540MVehCa ;
   private int[] C482_A539CmbCod ;
   private int[] C482_A538MVehNr ;
   private int[] C482_A537MVehNr ;
   private int[] C482_A536MVehNr ;
   private int[] C482_A535MVehNr ;
   private int[] C482_A534MVehAn ;
   private int[] C482_A533MVehAl ;
   private int[] C482_A532MVehLo ;
   private int[] C482_A531MVehCa ;
   private int[] C482_A530MVehPe ;
   private int[] C482_A529MVehPe ;
   private int[] C482_A528MVehNr ;
   private String[] C482_A527MVehNr ;
   private String[] C482_A526MVehNr ;
   private String[] C482_A525MVehCo ;
   private int[] C482_A523CmbCod ;
   private short[] C482_A522MVehAn ;
   private String[] C482_A189MarCod ;
   private short[] C482_A385ModCod ;
   private byte[] C482_A376TipAut ;
   private String[] C482_A521MVehNo ;
   private String[] C482_A520MVehNr ;
   private short[] C482_A519MVehCo ;
   private boolean[] C482_n520MVehNr ;
   private boolean[] C482_n521MVehNo ;
   private boolean[] C482_n376TipAut ;
   private boolean[] C482_n385ModCod ;
   private boolean[] C482_n189MarCod ;
   private boolean[] C482_n522MVehAn ;
   private boolean[] C482_n523CmbCod ;
   private boolean[] C482_n525MVehCo ;
   private boolean[] C482_n526MVehNr ;
   private boolean[] C482_n527MVehNr ;
   private boolean[] C482_n528MVehNr ;
   private boolean[] C482_n529MVehPe ;
   private boolean[] C482_n530MVehPe ;
   private boolean[] C482_n531MVehCa ;
   private boolean[] C482_n532MVehLo ;
   private boolean[] C482_n533MVehAl ;
   private boolean[] C482_n534MVehAn ;
   private boolean[] C482_n535MVehNr ;
   private boolean[] C482_n536MVehNr ;
   private boolean[] C482_n537MVehNr ;
   private boolean[] C482_n538MVehNr ;
   private boolean[] C482_n539CmbCod ;
   private boolean[] C482_n540MVehCa ;
   private boolean[] C482_n541MVehCa ;
   private boolean[] C482_n542MVehCo ;
   private boolean[] C482_n543MVehNM ;
   private boolean[] C482_n544MVehNs ;
   private boolean[] C482_n545MVehNC ;
   private boolean[] C482_n546MVehPS ;
   private boolean[] C482_n547MVehCU ;
   private boolean[] C482_n548MVehLo ;
   private boolean[] C482_n549MVehAl ;
   private boolean[] C482_n550MVehNe ;
   private boolean[] C482_n551MVehNR ;
   private boolean[] C482_n552MVehNA ;
   private boolean[] C482_n553MVehNP ;
   private boolean[] C482_n586MVehFC ;
   private boolean[] C482_n587MVehHC ;
   private boolean[] C482_n588MVehUC ;
   private boolean[] C482_n589MVehFU ;
   private boolean[] C482_n590MVehHU ;
   private boolean[] C482_n591MVehUU ;
   private boolean[] C482_n593MVehCo ;
   private boolean[] C482_n594MVehPB ;
   private boolean[] C482_n595MVehAn ;
   private boolean[] C482_n597MVehEs ;
}

final class c48__default extends DataStoreHelperBase implements ILocalDataStoreHelper
{
   public Cursor[] getCursors( )
   {
      return new Cursor[] {
          new ForEachCursor("C482", "SELECT [MVehEst], [MVehAncCnv], [MVehPBrCnv], [MVehCodCnv], [MVehUUM], [MVehHUM], [MVehFUM], [MVehUCR], [MVehHCR], [MVehFCR], [MVehNPuCnv], [MVehNAsCnv], [MVehNRuCnv], [MVehNejCnv], [MVehAltCnv], [MVehLonCnv], [MVehCUtlCn], [MVehPSeCnv], [MVehNCiCnv], [MVehNseCnv], [MVehNMoCnv], [MVehColCnv], [MVehCarCnv], [MVehCar], [CmbCodCnv], [MVehNroPue], [MVehNroAsi], [MVehNroRue], [MVehNroEje], [MVehAnc], [MVehAlt], [MVehLon], [MVehCarUti], [MVehPesBru], [MVehPesSec], [MVehNroCil], [MVehNroSer], [MVehNroMot], [MVehCol], [CmbCod], [MVehAnoFab], [MarCod], [ModCod], [TipAutCod], [MVehNomPro], [MVehNroPla], [MVehCod] FROM [MMVEH10] WITH (NOLOCK) ORDER BY [MVehCod] ",false, GX_NOMASK + GX_MASKLOOPLOCK, false, this,0,false )
         ,new UpdateCursor("C483", "INSERT INTO [GXA0048] ([MVehCod], [MVehNroPla], [MVehNomPro], [TipAutCod], [ModCod], [MarCod], [MVehAnoFab], [CmbCod], [MVehCol], [MVehNroMot], [MVehNroSer], [MVehNroCil], [MVehPesSec], [MVehPesBru], [MVehCarUti], [MVehLon], [MVehAlt], [MVehAnc], [MVehNroEje], [MVehNroRue], [MVehNroAsi], [MVehNroPue], [CmbCodCnv], [MVehCar], [MVehCarCnv], [MVehColCnv], [MVehNMoCnv], [MVehNseCnv], [MVehNCiCnv], [MVehPSeCnv], [MVehCUtlCn], [MVehLonCnv], [MVehAltCnv], [MVehNejCnv], [MVehNRuCnv], [MVehNAsCnv], [MVehNPuCnv], [MVehFCR], [MVehHCR], [MVehUCR], [MVehFUM], [MVehHUM], [MVehUUM], [MVehCodCnv], [MVehPBrCnv], [MVehAncCnv], [MVehEst]) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", GX_NOMASK + GX_MASKLOOPLOCK)
      };
   }

   public void getResults( int cursor ,
                           IFieldGetter rslt ,
                           Object[] buf ) throws SQLException
   {
      switch ( cursor )
      {
            case 0 :
               ((String[]) buf[0])[0] = rslt.getString(1, 1) ;
               ((boolean[]) buf[1])[0] = rslt.wasNull();
               ((int[]) buf[2])[0] = rslt.getInt(2) ;
               ((boolean[]) buf[3])[0] = rslt.wasNull();
               ((int[]) buf[4])[0] = rslt.getInt(3) ;
               ((boolean[]) buf[5])[0] = rslt.wasNull();
               ((long[]) buf[6])[0] = rslt.getLong(4) ;
               ((boolean[]) buf[7])[0] = rslt.wasNull();
               ((String[]) buf[8])[0] = rslt.getString(5, 10) ;
               ((boolean[]) buf[9])[0] = rslt.wasNull();
               ((String[]) buf[10])[0] = rslt.getString(6, 8) ;
               ((boolean[]) buf[11])[0] = rslt.wasNull();
               ((java.util.Date[]) buf[12])[0] = rslt.getGXDate(7) ;
               ((boolean[]) buf[13])[0] = rslt.wasNull();
               ((String[]) buf[14])[0] = rslt.getString(8, 10) ;
               ((boolean[]) buf[15])[0] = rslt.wasNull();
               ((String[]) buf[16])[0] = rslt.getString(9, 8) ;
               ((boolean[]) buf[17])[0] = rslt.wasNull();
               ((java.util.Date[]) buf[18])[0] = rslt.getGXDate(10) ;
               ((boolean[]) buf[19])[0] = rslt.wasNull();
               ((int[]) buf[20])[0] = rslt.getInt(11) ;
               ((boolean[]) buf[21])[0] = rslt.wasNull();
               ((int[]) buf[22])[0] = rslt.getInt(12) ;
               ((boolean[]) buf[23])[0] = rslt.wasNull();
               ((int[]) buf[24])[0] = rslt.getInt(13) ;
               ((boolean[]) buf[25])[0] = rslt.wasNull();
               ((int[]) buf[26])[0] = rslt.getInt(14) ;
               ((boolean[]) buf[27])[0] = rslt.wasNull();
               ((int[]) buf[28])[0] = rslt.getInt(15) ;
               ((boolean[]) buf[29])[0] = rslt.wasNull();
               ((int[]) buf[30])[0] = rslt.getInt(16) ;
               ((boolean[]) buf[31])[0] = rslt.wasNull();
               ((int[]) buf[32])[0] = rslt.getInt(17) ;
               ((boolean[]) buf[33])[0] = rslt.wasNull();
               ((int[]) buf[34])[0] = rslt.getInt(18) ;
               ((boolean[]) buf[35])[0] = rslt.wasNull();
               ((int[]) buf[36])[0] = rslt.getInt(19) ;
               ((boolean[]) buf[37])[0] = rslt.wasNull();
               ((String[]) buf[38])[0] = rslt.getString(20, 50) ;
               ((boolean[]) buf[39])[0] = rslt.wasNull();
               ((String[]) buf[40])[0] = rslt.getString(21, 50) ;
               ((boolean[]) buf[41])[0] = rslt.wasNull();
               ((String[]) buf[42])[0] = rslt.getString(22, 50) ;
               ((boolean[]) buf[43])[0] = rslt.wasNull();
               ((String[]) buf[44])[0] = rslt.getString(23, 50) ;
               ((boolean[]) buf[45])[0] = rslt.wasNull();
               ((String[]) buf[46])[0] = rslt.getString(24, 50) ;
               ((boolean[]) buf[47])[0] = rslt.wasNull();
               ((int[]) buf[48])[0] = rslt.getInt(25) ;
               ((boolean[]) buf[49])[0] = rslt.wasNull();
               ((int[]) buf[50])[0] = rslt.getInt(26) ;
               ((boolean[]) buf[51])[0] = rslt.wasNull();
               ((int[]) buf[52])[0] = rslt.getInt(27) ;
               ((boolean[]) buf[53])[0] = rslt.wasNull();
               ((int[]) buf[54])[0] = rslt.getInt(28) ;
               ((boolean[]) buf[55])[0] = rslt.wasNull();
               ((int[]) buf[56])[0] = rslt.getInt(29) ;
               ((boolean[]) buf[57])[0] = rslt.wasNull();
               ((int[]) buf[58])[0] = rslt.getInt(30) ;
               ((boolean[]) buf[59])[0] = rslt.wasNull();
               ((int[]) buf[60])[0] = rslt.getInt(31) ;
               ((boolean[]) buf[61])[0] = rslt.wasNull();
               ((int[]) buf[62])[0] = rslt.getInt(32) ;
               ((boolean[]) buf[63])[0] = rslt.wasNull();
               ((int[]) buf[64])[0] = rslt.getInt(33) ;
               ((boolean[]) buf[65])[0] = rslt.wasNull();
               ((int[]) buf[66])[0] = rslt.getInt(34) ;
               ((boolean[]) buf[67])[0] = rslt.wasNull();
               ((int[]) buf[68])[0] = rslt.getInt(35) ;
               ((boolean[]) buf[69])[0] = rslt.wasNull();
               ((int[]) buf[70])[0] = rslt.getInt(36) ;
               ((boolean[]) buf[71])[0] = rslt.wasNull();
               ((String[]) buf[72])[0] = rslt.getString(37, 50) ;
               ((boolean[]) buf[73])[0] = rslt.wasNull();
               ((String[]) buf[74])[0] = rslt.getString(38, 50) ;
               ((boolean[]) buf[75])[0] = rslt.wasNull();
               ((String[]) buf[76])[0] = rslt.getString(39, 50) ;
               ((boolean[]) buf[77])[0] = rslt.wasNull();
               ((int[]) buf[78])[0] = rslt.getInt(40) ;
               ((boolean[]) buf[79])[0] = rslt.wasNull();
               ((short[]) buf[80])[0] = rslt.getShort(41) ;
               ((boolean[]) buf[81])[0] = rslt.wasNull();
               ((String[]) buf[82])[0] = rslt.getString(42, 10) ;
               ((boolean[]) buf[83])[0] = rslt.wasNull();
               ((short[]) buf[84])[0] = rslt.getShort(43) ;
               ((boolean[]) buf[85])[0] = rslt.wasNull();
               ((byte[]) buf[86])[0] = rslt.getByte(44) ;
               ((boolean[]) buf[87])[0] = rslt.wasNull();
               ((String[]) buf[88])[0] = rslt.getString(45, 50) ;
               ((boolean[]) buf[89])[0] = rslt.wasNull();
               ((String[]) buf[90])[0] = rslt.getString(46, 20) ;
               ((boolean[]) buf[91])[0] = rslt.wasNull();
               ((short[]) buf[92])[0] = rslt.getShort(47) ;
               break;
      }
   }

   public void setParameters( int cursor ,
                              IFieldSetter stmt ,
                              Object[] parms ) throws SQLException
   {
      switch ( cursor )
      {
            case 1 :
               stmt.setShort(1, ((Short) parms[0]).shortValue());
               stmt.setString(2, (String)parms[1], 20);
               stmt.setString(3, (String)parms[2], 50);
               stmt.setByte(4, ((Byte) parms[3]).byteValue());
               stmt.setString(5, (String)parms[4], 10);
               stmt.setString(6, (String)parms[5], 10);
               stmt.setShort(7, ((Short) parms[6]).shortValue());
               stmt.setInt(8, ((Integer) parms[7]).intValue());
               stmt.setString(9, (String)parms[8], 50);
               stmt.setString(10, (String)parms[9], 50);
               stmt.setString(11, (String)parms[10], 50);
               stmt.setInt(12, ((Integer) parms[11]).intValue());
               stmt.setInt(13, ((Integer) parms[12]).intValue());
               stmt.setInt(14, ((Integer) parms[13]).intValue());
               stmt.setInt(15, ((Integer) parms[14]).intValue());
               stmt.setInt(16, ((Integer) parms[15]).intValue());
               stmt.setInt(17, ((Integer) parms[16]).intValue());
               stmt.setInt(18, ((Integer) parms[17]).intValue());
               stmt.setInt(19, ((Integer) parms[18]).intValue());
               stmt.setInt(20, ((Integer) parms[19]).intValue());
               stmt.setInt(21, ((Integer) parms[20]).intValue());
               stmt.setInt(22, ((Integer) parms[21]).intValue());
               stmt.setInt(23, ((Integer) parms[22]).intValue());
               stmt.setString(24, (String)parms[23], 50);
               stmt.setString(25, (String)parms[24], 50);
               stmt.setString(26, (String)parms[25], 50);
               stmt.setString(27, (String)parms[26], 50);
               stmt.setString(28, (String)parms[27], 50);
               stmt.setInt(29, ((Integer) parms[28]).intValue());
               stmt.setInt(30, ((Integer) parms[29]).intValue());
               stmt.setInt(31, ((Integer) parms[30]).intValue());
               stmt.setInt(32, ((Integer) parms[31]).intValue());
               stmt.setInt(33, ((Integer) parms[32]).intValue());
               stmt.setInt(34, ((Integer) parms[33]).intValue());
               stmt.setInt(35, ((Integer) parms[34]).intValue());
               stmt.setInt(36, ((Integer) parms[35]).intValue());
               stmt.setInt(37, ((Integer) parms[36]).intValue());
               stmt.setDate(38, (java.util.Date)parms[37]);
               stmt.setString(39, (String)parms[38], 8);
               stmt.setString(40, (String)parms[39], 10);
               stmt.setDate(41, (java.util.Date)parms[40]);
               stmt.setString(42, (String)parms[41], 8);
               stmt.setString(43, (String)parms[42], 10);
               stmt.setLong(44, ((Long) parms[43]).longValue());
               stmt.setInt(45, ((Integer) parms[44]).intValue());
               stmt.setInt(46, ((Integer) parms[45]).intValue());
               stmt.setString(47, (String)parms[46], 1);
               break;
      }
   }

}

